﻿using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Text;

namespace Famofo.AgbaraVOIP.Sample.RESTSample
{
    public class Sample
    {
        private static string RestSample()
        {

            const string ACCOUNT_SID = "54023569";
            const string ACCOUNT_TOKEN = "3ee2b746";
            string response = string.Empty;
            var account = new RestAPIClient(ACCOUNT_SID, ACCOUNT_TOKEN);

            Hashtable h = new Hashtable();
            //h.Add("username", ACCOUNT_SID);
            //h.Add("password", ACCOUNT_TOKEN);
            //h.Add("from", From);
            //h.Add("to", To);
            //h.Add("text", Text);
            //h.Add("format", "csv");
            try
            {
                response = account.request("/nancy", "GET", h);
            }
            catch
            {
                response = "Error Occured";
            }

            return response;
        }
        public static void Sample1 ()
        {
            string res = RestSample();
            Console.WriteLine(res);
        }
    }
}
